
package org.qiuqiu.utils;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class CountPeoper implements HttpSessionListener{
        int sum=0;
	public void sessionCreated(HttpSessionEvent e) {
		 sum=sum+1;		 
		 e.getSession().setAttribute("sum", sum);
		 System.out.println("sum=="+sum);
	}

	public void sessionDestroyed(HttpSessionEvent arg0) {
		
		
	}
     
}
